package com.xueyi.system.productDetection.domain.po;

import java.math.BigDecimal;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.productDetection.domain.dto.ProductDetectionDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 产品检测管理 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_product_detection", excludeProperty = {"name", "sort"}, autoResultMap = true)
public class ProductDetectionPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 检测名称
     */
    @Excel(name = "检测名称")
    @TableField("detection_name")
    private String detectionName;

    /**
     * 检测编码
     */
    @Excel(name = "检测编码")
    @TableField("detection_code")
    private String detectionCode;

    /**
     * 取样id
     */
    @Excel(name = "取样id")
    @TableField("sample_id")
    private String sampleId;

    /**
     * 取样名称
     */
    @Excel(name = "取样名称")
    @TableField("sample_name")
    private String sampleName;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    @TableField("product_id")
    private String productId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    @TableField("product_name")
    private String productName;

    /**
     * 检测类型
     */
    @Excel(name = "检测类型")
    @TableField("assay_type")
    private String assayType;

    /**
     * 检测人
     */
    @Excel(name = "检测人id")
    @TableField("tested_by_id")
    private String testedById;

    /**
     * 检测人
     */
    @Excel(name = "检测人")
    @TableField("tested_by")
    private String testedBy;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    @TableField("contact_details")
    private String contactDetails;

    /**
     * 检测结果
     */
    @Excel(name = "检测结果")
    @TableField("detection_result")
    private String detectionResult;

    /**
     * 检测附件
     */
    @Excel(name = "检测附件")
    @TableField(value = "detection_appendix", typeHandler = FastjsonTypeHandler.class)
    private JSONArray detectionAppendix;

    /**
     * 单位名称
     */
    @Excel(name = "单位名称")
    @TableField("unit_name")
    private String unitName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    @TableField("num")
    private BigDecimal num;

    /**
     * 状态（1启用、2停用）
     */
    @Excel(name = "状态", readConverterExp = "1=启用、2停用")
    @TableField("status")
    private String status;

    /**
     * 批次
     */
    @Excel(name = "批次)")
    @TableField("plant_id")
    private String plantId;

    public String getPlantId() {
        return plantId;
    }

    public void setPlantId(String plantId) {
        this.plantId = plantId;
    }

    public String getTestedById() {
        return testedById;
    }

    public void setTestedById(String testedById) {
        this.testedById = testedById;
    }

    public void setDetectionName(String detectionName) {
        this.detectionName = detectionName;
    }

    public String getDetectionName() {
        return detectionName;
    }

    public void setDetectionCode(String detectionCode) {
        this.detectionCode = detectionCode;
    }

    public String getDetectionCode() {
        return detectionCode;
    }

    public void setSampleId(String sampleId) {
        this.sampleId = sampleId;
    }

    public String getSampleId() {
        return sampleId;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName;
    }

    public String getSampleName() {
        return sampleName;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setAssayType(String assayType) {
        this.assayType = assayType;
    }

    public String getAssayType() {
        return assayType;
    }

    public void setTestedBy(String testedBy) {
        this.testedBy = testedBy;
    }

    public String getTestedBy() {
        return testedBy;
    }

    public void setContactDetails(String contactDetails) {
        this.contactDetails = contactDetails;
    }

    public String getContactDetails() {
        return contactDetails;
    }

    public void setDetectionResult(String detectionResult) {
        this.detectionResult = detectionResult;
    }

    public String getDetectionResult() {
        return detectionResult;
    }

    public void setDetectionAppendix(JSONArray detectionAppendix) {
        this.detectionAppendix = detectionAppendix;
    }

    public JSONArray getDetectionAppendix() {
        return detectionAppendix;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setNum(BigDecimal num) {
        this.num = num;
    }

    public BigDecimal getNum() {
        return num;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
